import { user } from "../prefix";
import { art } from "../prefix";
const personInfo = [
  {
    // 上传头像
    name: "uplpadHeadPhoto",
    url: user + "/user/:userid",
    method: "POST",
    headers: {
      "Content-Type": "multipart/form-data",
    },
  },
  {
    // 修改手机号码 获取短信验证码
    name: "getVercode",
    url: user + "/user/:data_id",
    method: "GET",
  },
  {
    // 修改手机号码
    name: "changePhone",
    url: user + "/user/:data_id",
    method: "POST",
  },
  // 修改用户信息
  {
    // 修改手机号码
    name: "editUserInfo",
    url: user + "/user/:data_id",
    method: "POST",
  },
  // 大事记
  {
    name: "artEvent",
    url: art + "/art_event",
    method: "get",
  },
  // 更新大事记
  {
    name: "updateEvent",
    url: art + "/art_event/:data_id",
    method: "POST"
  },
  // 更新大事记
  {
    name: "createEvent",
    url: art + "/art_event",
    method: "POST"
  },
  {
    name: "updateArtDesc",
    url: art + "/art/:data_id",
    method: "POST"
  },
  {
    name: "updateUserDesc",
    url: user + "/user/:data_id",
    method: "POST"
  },
  // 艺术家代表作
  {
    name: "artFamous",
    url: art + "/art_famous",
    method: "get",
  },
  // 活动视频
  {
    name: "artVideo",
    url: art + "/art_video",
    method: "get",
  },
];

export default personInfo;
